package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysRequestsCheckMapper;
import com.ruoyi.system.domain.SysRequestsCheck;
import com.ruoyi.system.service.ISysRequestsCheckService;

/**
 * 接口校验Service业务层处理
 * 
 * @author yql
 * @date 2023-09-19
 */
@Service
public class SysRequestsCheckServiceImpl implements ISysRequestsCheckService 
{
    @Autowired
    private SysRequestsCheckMapper sysRequestsCheckMapper;

    /**
     * 查询接口校验
     * 
     * @param id 接口校验主键
     * @return 接口校验
     */
    @Override
    public SysRequestsCheck selectSysRequestsCheckById(Long id)
    {
        return sysRequestsCheckMapper.selectSysRequestsCheckById(id);
    }

    /**
     * 查询接口校验列表
     * 
     * @param sysRequestsCheck 接口校验
     * @return 接口校验
     */
    @Override
    public List<SysRequestsCheck> selectSysRequestsCheckList(SysRequestsCheck sysRequestsCheck)
    {
        return sysRequestsCheckMapper.selectSysRequestsCheckList(sysRequestsCheck);
    }

    /**
     * 新增接口校验
     * 
     * @param sysRequestsCheck 接口校验
     * @return 结果
     */
    @Override
    public int insertSysRequestsCheck(SysRequestsCheck sysRequestsCheck)
    {
        sysRequestsCheck.setCreateTime(DateUtils.getNowDate());
        return sysRequestsCheckMapper.insertSysRequestsCheck(sysRequestsCheck);
    }

    /**
     * 修改接口校验
     * 
     * @param sysRequestsCheck 接口校验
     * @return 结果
     */
    @Override
    public int updateSysRequestsCheck(SysRequestsCheck sysRequestsCheck)
    {
        sysRequestsCheck.setUpdateTime(DateUtils.getNowDate());
        return sysRequestsCheckMapper.updateSysRequestsCheck(sysRequestsCheck);
    }

    /**
     * 批量删除接口校验
     * 
     * @param ids 需要删除的接口校验主键
     * @return 结果
     */
    @Override
    public int deleteSysRequestsCheckByIds(Long[] ids)
    {
        return sysRequestsCheckMapper.deleteSysRequestsCheckByIds(ids);
    }

    /**
     * 删除接口校验信息
     * 
     * @param id 接口校验主键
     * @return 结果
     */
    @Override
    public int deleteSysRequestsCheckById(Long id)
    {
        return sysRequestsCheckMapper.deleteSysRequestsCheckById(id);
    }
}
